package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsInvAr;
import com.yudean.esb.mapper.erp.ErpIdsInvArMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsInvArDao {

    @Resource
    public ErpIdsInvArMapper erpIdsInvArMapper;

    public int insertSelective(ErpIdsInvAr record) {
        return erpIdsInvArMapper.insertSelective(record);
    }

    public int batchInsertInvArData(List<ErpIdsInvAr> erpIdsInvArList) {
        return erpIdsInvArMapper.batchInsertInvArData(erpIdsInvArList);
    }

    public int deleteInvArByControlId(long controlId) {
        return erpIdsInvArMapper.deleteInvArByControlId(controlId);
    }
}
